Content of page
Answers to questions
what tasks have been completed?
- manufacturing by milling a house for a cat
- programming of a microcontroller to transfer video to the server and control servomotors
- design and assembly of the case
what tasks remain?
clean the control interface from unnecessary functions
the microcontroller is connected to the network only from the laptop with which it was programmed, but it can be controlled from any device that is on the same network as it.
what has worked? what hasn't?
Everything worked, but with some caveats.
For the pointer, you need to use only servos that move in the range of 0 - 180 degrees. With a range of 360 degrees, the servo does not accept a command with a limit.
it was difficult to combine sketches for video transfer and servo control on one server.
what questions need to be resolved?
The problems were solved by dividing the control functions into different sketch files.
The main file describes the creation of a server with video transmission, and the camera_index.h file describes the control of servo motors.
what have you learned?
While working on the project, I learned literally all the skills that were used, but I had not done this before. Design of parameterized models, design of programs for milling, programming of microcontrollers and production of printed circuit boards
System integration
I described how I assembled the entire project into one device at the week of system integration here
Software part of the project
In order for the mother to watch her pet remotely, I need to program the esp32s3P
first of all, I used a simple sketch to connect to wi-fi.
The next step I added was creating a server. Since I used a modified sketch that used pins that are not on my esp, I had problems with the board constantly rebooting. After I fixed it. The server is up and running.
The next stage is servo control. I also changed the sketch to control two servos and a laser. The sketch was successful.
Then I created a separate sketch to output the video from the camera to the server. This sketch also worked
The last task is to combine the sketches
For this, I used the sketch in the link
Open Filebut at the moment I can only see videos on the server. I don't understand why the servo control is not displayed.
The example of good combaine sketch I find here https://gitlab.com/kriwkrow/esp32-camera-servo-problem In this sketch I Add second servo and Laser. It is work.
PCB Designe
Then I started designing the pcb board. How It was I descrabe inlaser pointer programming
To make a laser pointer for a cat, I will need the following components xiao esp32s3 sense, two sg90 servos and a laser diode. The servo and diode programming process is described in week 9. During the development process, the work was checked by the future owner of the device.
How I programmed the microcontroller to control the servo is described in detail in week 12 at the link There is also a file with the program code.
Tranformation the Idea
My final project on a security system gradually transformed into a cat monitoring system.
Initially, I was planning to build a security system for the house, but by the 7th week, I decided to design a house for the cat.
This led to the idea that this system could be tested on a cat house.
Then came the idea that instead of a signaling remote, a controlled laser could be made to entertain the pet when I'm not at home.
Therefore, now my final project is an interactive house for the cat with remote control.
For this, I plan to make an automated laser pointer and video surveillance with remote access to the broadcast. I will use esp32s3 with camera two servos, laser diode, infrared sensor hc-sr501
On the seventh week, I built the house itself, and now I'm continuing to work on the electronic component.
How I made this house is described in detail in week seven at the link There are also original design files.
The first idea
The surveillance system for the area.
Camera with built-in motion sensor:
The camera can automatically activate when motion is detected within the private property.
The motion sensor helps in timely detection of potential intruders.
Notification to a remote indicator (LED remote control):
If the camera detects motion or potential intrusion, the system sends a notification to a remote indicator, such as an LED remote control.
The LED can flash or stay lit continuously, indicating the presence of an event.
Remote control:
The user can have a remote control to arm/disarm the system or check the security status.
Convenient control can be particularly useful for homeowners who are away from home.
Data storage system:
Provide a system for storing recordings or changes on a server or cloud storage.
Allow the homeowner to view archived recordings for event analysis. Mobile application:Develop a mobile application for devices so that homeowners can receive notifications and view video recordings in real-time.
Provide the ability to remotely control the system through the application.
Energy efficiency:
Pay attention to the energy efficiency of the system, especially if it operates continuously.
Provide the ability to adjust the activation time of the system to optimize energy consumption.
I want to use ESP32-CAM to implement such a system
The combination of a Wi-Fi module with a high-performance microcontroller ESP32, OV2640 video camera, micro-SD memory card slot, and additional 4MB of RAM allows for the creation of portable devices for security systems, video surveillance, and smart home systems.Specifications:
Controller: ESP32, 2 cores, 32-bit
Processor clock frequency: 240 MHz / 600 DMIPS
RAM: Built-in: 520 KB / External: 4 MB
Supported interfaces: UART/SPI/I2C/PWM/ADC/DAC
Built-in Lwip and FreeRTOS
Supports STA/AP/STA + AP operating modes
Supports Smart Config/AirKiss network distribution
Power supply voltage: 5V
Camera module: OV2640 (included)
Resolution: 2 MP
Supported cameras: OV2640 and OV7670
Data storage: micro-SD
Size: 27 x 39 mm
Weight: 10 g